namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0041 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.IcmInventoryRepair", "DealerRepairId", "dbo.IcmMasDealerRepair");
            DropIndex("dbo.IcmInventoryRepair", new[] { "DealerRepairId" });
            AddForeignKey("dbo.IcmInventoryRepair", "DealerRepairId", "dbo.IcmMasContact", "ConId");
            CreateIndex("dbo.IcmInventoryRepair", "DealerRepairId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.IcmInventoryRepair", new[] { "DealerRepairId" });
            DropForeignKey("dbo.IcmInventoryRepair", "DealerRepairId", "dbo.IcmMasContact");
            CreateIndex("dbo.IcmInventoryRepair", "DealerRepairId");
            AddForeignKey("dbo.IcmInventoryRepair", "DealerRepairId", "dbo.IcmMasDealerRepair", "DealerRepairId");
        }
    }
}
